<template>
  <div class="Boutique">
    <p class="bt">精品推荐</p>
    <p class="text">你指的拥有的优质内容</p>

    <div class="Boutique_nva" v-for="(item,index) in boutique" :key="index">
          <span class="recommend_span">
            <img :src="item.picUrl" class="today_left" alt="">
          </span>
      <p class="nva_wz">{{item.name}}</p>
      <p class="nva_jg">￥ 98</p>

    </div>
    <div class="all">全部精品电台</div>
    <div class="Boutique_dw">
      <img src="../../assets/icon/r04.png" alt="">
    </div>
  </div>
</template>

<script>
  import { mapState } from 'vuex'
  export default {
    name: 'radio',
    data() {
      return {
        todayArray: [],
      };
    },
    computed: {
      ...mapState(['boutique'])
    },
    created() {
      //api 统一管理
      this.$api.getboutique({limit:3})
    },
  };
</script>

<style scoped>
  .Boutique{
    width: 100vw;
    height: 330px;
    overflow: hidden;
    position: relative;

  }
  .Boutique_dw{
    width: 100vw;
    height: 330px;
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(10px);
    z-index: -1;
  }
  .Boutique_dw img {

    width: 100vw;
    height: 330px;


  }
  .bt{
    width: 100vw;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    color: #D4D3D0;
    text-align: center;
    font-weight: bold;
  }
  .text{
    width: 100vw;
    height: 30px;
    line-height: 10px;
    font-size: 14px;
    color: #85837C;
    text-align: center;
  }
  .Boutique_nva{
    width: 32vw;
    height: 190px;
    background: #fff;
    margin-left: 1vw;
    border-radius: 5px;
    overflow: hidden;
    float: left;
  }
  .nva_wz{
    height: 50px;
    font-size: 13px;
    margin-left: 3px;
    margin-top: -8px;
  }
  .nva_jg{
    height: 20px;
    font-size: 14px;
    margin-top: -10px;
    color: #C7584E;
    margin-left: 3px;
  }
  .all{
    width: 120px;
    height: 25px;
    line-height: 25px;
    font-size: 12px;
    color: #E8E7E5;
    border: 1px solid #AAA9AA;
    border-radius: 50px;
    text-indent: 16px;
    margin: 210px auto;
    background: url("../../assets/img/xiayige2.png") no-repeat 92px 5px ;

  }
  .recommend_span{
    display: block;
    box-sizing: border-box;
    width: 32vw;
  }
  img{
    width: inherit;
    height: inherit;
    object-fit: contain;
  }
</style>
